﻿using Loli.Library.WinIo;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GameTools.Models
{
    [Serializable]
    public class Skill
    {
        public int ID { get; set; }

        public SkillTypes Type { get; set; }

        public KeyCodes KeyCode { get; set; }
        public int Duration { get; set; }
        public int ActionTime { get; set; }


        public string DisplayString
        {
            get
            {
                return string.Format("{0}:{1}\r\n持续时间:{2}毫秒\r\n动作时间:{3}毫秒", 
                    Type == SkillTypes.Attack ? "技能" : "状态", KeyCode, Duration, ActionTime);
            }
        }

    }
}
